package com.bestdreamer.reentrant_lock;

public class Demo1Service {

    synchronized
    public void service1(){
        System.out.println("service1");
        service2();
    }

    synchronized
    public void service2(){
        System.out.println("service2");
        service3();
    }

    synchronized
    public void service3(){
        System.out.println("service3");
    }
}
